package com.example.springfeature.createobject;

import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * Created with IDEA
 *
 * @author: 董文辉
 * Date: 2019/3/1
 * Time: 11:02
 */
public class User implements Cloneable,Serializable{
    private String name;

    private String isTrue;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIsTrue() {
        return isTrue;
    }

    public void setIsTrue(String isTrue) {
        this.isTrue = isTrue;
    }

    public User() {
//        System.out.println("使用空参构造创建一个user");
    }

    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", isTrue='" + isTrue + '\'' +
                '}';
    }
}
